package com.example.demo.day.config.learn.designBook.secondDay.part3;

import com.example.demo.day.config.learn.designBook.secondDay.part1.IBook;
import com.example.demo.day.config.learn.designBook.secondDay.part2.OffNovelBook;

public class OffNovelBookTest {
    private IBook below40NovelBook = new OffNovelBook("平凡的世界", 3000, "路遥");
    private IBook above40NovelBook = new OffNovelBook("平凡的世界", 6000, "路遥");

    //测试低于40元的数据是否打8折
    public void testGetPriceBelow40() {
        //super.assertEquals(2400, this.below40NovelBook.getPrice());
        System.out.println(2400 == this.below40NovelBook.getPrice());
    }

    //测试高于40元的数据是否打9折
    public void testGetPriceAbove40() {
        //super.assertEquals(5400, this.above40NovelBook.getPrice());
        System.out.println(5400 == this.above40NovelBook.getPrice());
    }

}
